package com.nut.spp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nut.spp.api.req.MemberInviteLogQueryReq;
import com.nut.spp.common.Result;
import com.nut.spp.entity.MemberInviteLog;
import com.nut.spp.mapper.MemberInviteLogMapper;
import com.nut.spp.service.MemberInviteLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MemberInviteLogServiceImpl implements MemberInviteLogService {

    @Autowired
    private MemberInviteLogMapper memberInviteLogMapper;

    @Override
    public Result<IPage<MemberInviteLog>> listPage(MemberInviteLogQueryReq req) {
        IPage<MemberInviteLog> page = memberInviteLogMapper.listPage(req.newPage(), req.getMemberId(), req.getMobile(), req.getToMobile());
        return Result.ok(page);
    }

}
